import time
x=0
while True:
    print(x, flush=True)
    x+=1
    time.sleep(5)
#     if x>4:
#         break
